package com.pand.model.company;

import com.pand.model.BaseObject;

import javax.persistence.*;

/**
 * 
 * @ClassName: Orgnization 
 * @Description: 组织
 *
 */
@Entity
@Table(name = "SYS_ORGNIZATION")
@SequenceGenerator(name = "SeqOrgnization", sequenceName = "SEQ_ORGNIZATION")
public class Orgnization extends BaseObject {
	
	/** 
	 * @Fields serialVersionUID : 
	 */ 
	private static final long serialVersionUID = 1L;
	
	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 * 父id
	 */
	private Long pid;
	
	/**
	 * 组织电话
	 */
	private String phone;
	
	/**
	 * 组织名称
	 */
	private String name;
	
	/**
	 * 组织描述
	 */
	private String desc;
	
	/**
	 * 组织缩写
	 */
	private String refCode;
	
	/**
	 * 组织类型
	 */
	private String orgType;
	
	/**
	 * 组织类型名称
	 */
	private String orgTypeName;
	
	/**
	 * 城市
	 */
	private String cityId;
	
	/**
	 * 负责人
	 */
	private String personCharge;
	
	/**
	 * 公司状态
	 */
	private String companyState;
	
	@Id
	@GeneratedValue(generator = "SeqOrgnization")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "P_ID")
	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	@Column(name = "ORG_PHONE")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "ORG_NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ORG_DESC")
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Column(name = "REF_CODE")
	public String getRefCode() {
		return refCode;
	}

	public void setRefCode(String refCode) {
		this.refCode = refCode;
	}

	@Column(name = "ORG_TYPE")
	public String getOrgType() {
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}
    @Column(name = "CITY_ID")
	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	@Column(name = "person_Charge")
	public String getPersonCharge() {
		return personCharge;
	}

	public void setPersonCharge(String personCharge) {
		this.personCharge = personCharge;
	}
	@Column(name = "company_State")
	public String getCompanyState() {
		return companyState;
	}

	public void setCompanyState(String companyState) {
		this.companyState = companyState;
	}
	
	@Transient
	public String getOrgTypeName() {
		return orgTypeName;
	}

	public void setOrgTypeName(String orgTypeName) {
		this.orgTypeName = orgTypeName;
	}
	
}
